==PREFS==
js.formatter.spaces.after.commas=1
js.formatter.spaces.after.assignment.operator=1
js.formatter.spaces.after.arithmetic.operator=1
js.formatter.spaces.after.conditional.operator=1
js.formatter.indent.case.body=true
js.formatter.indent.switch.body=true
js.formatter.spaces.before.for.semicolon.operator=0
js.formatter.spaces.before.parentheses=0
js.formatter.spaces.after.semicolon.operator=1
js.formatter.spaces.before.postfix.operator=0
js.formatter.spaces.after.postfix.operator=0
js.formatter.spaces.before.relational.operator=1
js.formatter.spaces.before.case.colon.operator=1
js.formatter.spaces.before.unary.operator=0
js.formatter.wrap.comments=false
js.formatter.indent.group.body=true
js.formatter.line.after.function.declaration=1
js.formatter.spaces.after.concatenation.operator=1
js.formatter.wrap.comments.length=80
js.formatter.spaces.before.conditional.operator=1
js.formatter.formatter.tabulation.size=4
js.formatter.spaces.after.relational.operator=1
js.formatter.spaces.after.case.colon.operator=1
js.formatter.spaces.before.prefix.operator=0
js.formatter.indent.blocks=true
js.formatter.spaces.before.concatenation.operator=1
js.formatter.line.preserve=1
js.formatter.brace.position.case.block=same.line
js.formatter.brace.position.switch.block=same.line
js.formatter.formatter.tabulation.char=space
js.formatter.indent.function.body=true
js.formatter.line.after.function.declaration.expression=0
js.formatter.formatter.indentation.size=4
js.formatter.newline.before.name.value.pairs=true
js.formatter.newline.between.var.declarations=true
js.formatter.spaces.after.parentheses=0
js.formatter.spaces.after.for.semicolon.operator=1
js.formatter.newline.before.if.in.elseif=false
js.formatter.spaces.before.key.value.operator=1
js.formatter.spaces.before.commas=0
js.formatter.spaces.after.unary.operator=0
js.formatter.spaces.before.arithmetic.operator=1
js.formatter.spaces.before.assignment.operator=1
js.formatter.newline.before.dowhile=false
js.formatter.newline.before.else=false
js.formatter.spaces.before.semicolon.operator=0
js.formatter.newline.before.finally=false
js.formatter.newline.before.catch=false
js.formatter.spaces.after.prefix.operator=0
js.formatter.brace.position.function.declaration=same.line
js.formatter.spaces.after.key.value.operator=1
js.formatter.brace.position.blocks=same.line
==CONTENT==
/**
 * build a static library
 */
function staticlib(config, callback) {

	var settings = getXcodeSettingsCached();
	arch = config.arch, linkflags = config.linkflags || [], sdks = getSDKs(settings), sdkObj = sdks[arch], libname = path.join(config.outdir, arch, config.libname.replace(/\.a$/, '-' + arch + '.a'));

	var config = {
		linker : settings.libtool,
		objfiles : config.objfiles,
		linkflags : linkflags,
		libname : libname,
		outdir : path.dirname(libname)
	};

	clang.library(config, callback);
}
==FORMATTED==
/**
 * build a static library
 */
function staticlib(config, callback) {

    var settings = getXcodeSettingsCached();
    arch = config.arch,
    linkflags = config.linkflags || [],
    sdks = getSDKs(settings),
    sdkObj = sdks[arch],
    libname = path.join(config.outdir, arch, config.libname.replace(/\.a$/, '-' + arch + '.a'));

    var config = {
        linker : settings.libtool,
        objfiles : config.objfiles,
        linkflags : linkflags,
        libname : libname,
        outdir : path.dirname(libname)
    };

    clang.library(config, callback);
}